const worker = new Worker("./script.js");
const startTime = new Date().getTime();
console.log("start time:", startTime);
worker.addEventListener("message", (e) => {
  console.log(e);
  console.log("calc total time:", new Date().getTime() - startTime);
});
